2 reports in one Viewer
Hello,
i'm a newbie in FastReport and sorry for my horrible english.
I have two Reports (frx) and i will now show this two reports in one FR-Viewer as seperated tabulators.
(please see th attachment)
My startcode in the winform is (in VB.Net):
How do I have to change the code to display both reports in a viewer?
Many thanks for help
Frank
i'm a newbie in FastReport and sorry for my horrible english.
I have two Reports (frx) and i will now show this two reports in one FR-Viewer as seperated tabulators.
(please see th attachment)
My startcode in the winform is (in VB.Net):
Private Sub frmCCP3FastInputPrint_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'* myCCP3FastInputReport is the name of Reportcontrol
'* myPreviewControl is the name of Reportviewercontrol
myCCP3FastInputReport.Load(string.Concat(My.Settings.myReportPath,"\","CCP3FastInputReport.frx"))
myCCP3FastInputReport.Prepare
myCCP3FastInputReport.Preview=myPreviewControl
myCCP3FastInputReport.Show
End Sub
How do I have to change the code to display both reports in a viewer?
Many thanks for help
Frank
Comments
Use the following code to add a new tab to the preview control:
report.Load(...)
report.Prepare()
previewControl1.AddTab(report, "tab title")
Hello AlexTZ,
that was what I was looking for.
Thanks
Frank